package com.jy.adscm.wechat.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.wechat.bean.QueryWechatMaterial;
import com.jy.adscm.wechat.bean.WeChatResource;
import com.jy.adscm.wechat.bean.WechatMaterial;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zyl
 * @since 2019-09-29
 */
public interface WechatMaterialService extends IService<WechatMaterial> {

    Page<WechatMaterial> selectWechatMaterial(Page<WechatMaterial> page, QueryWechatMaterial queryWechatMaterial) throws AdscmSystemException;

    WechatMaterial updateWechatMaterialVaule(Long pid, Float nums)throws AdscmSystemException;
    WechatMaterial selectWechatMaterialById(Long id);

    List<WeChatResource> selectInStock(String keywords,String openid,Integer pid)throws AdscmSystemException;

    Boolean updateWechatMaterial(WechatMaterial wechatMaterial, String openid)throws AdscmSystemException;
}
